package com.zzy.edu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zzy.edu.entity.EduCourseDescription;
import com.zzy.edu.mapper.EduCourseDescriptionMapper;
import com.zzy.edu.service.EduCourseDescriptionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 课程简介 服务实现类
 * </p>
 *
 * @author KAZU
 * @since 2023-01-13
 */
@SuppressWarnings("all")
@Service
public class EduCourseDescriptionServiceImpl extends ServiceImpl<EduCourseDescriptionMapper, EduCourseDescription> implements EduCourseDescriptionService {
	
	@Autowired
	private EduCourseDescriptionMapper descriptionMapper;
	
	/**
	 * 根据课程id删除课程本身
	 * */
	@Override
	public void removeDescriptionByCourseId(String courseId) {
		descriptionMapper.deleteById(courseId);
	}


}
